# set default plot theme
library(ggplot2)


# setup ggplot theme:
mytheme <- theme(legend.position = 'bottom',
                 legend.direction = "horizontal",
                 axis.line = element_line(color = 'black', linewidth = 0.3),
                 panel.grid.major = element_blank(),
                 panel.grid.minor = element_blank(),
                 legend.text = element_text(size = 12),
                 panel.background = element_rect(fill = "transparent", color = NA),
                 plot.background = element_rect(fill = "transparent", color = NA),
                 legend.background = element_rect(fill = "transparent", color = NA),
                 legend.box.background = element_rect(fill = "transparent", color = NA),
                 legend.key = element_rect(fill = "transparent", color = NA))
theme_set(mytheme)
